package com.linked.basemanage.deletebak.bean.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.linked.commonentity.basemanage.deletebak.LinkedDeleteBak;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Bluerain
 * @version 1.0
 * @data 2024/12/31 9:18
 * @describe todo
 */
@Data
@TableName("basemanage_delete_bak")
public class DeleteBakPO {

    /**
     * 删除备份表主键
     * */
    @TableField("deletebak_id")
    private String deleteBakId;
    /**
     * 删除的用户
     * */
    @TableField("user_id")
    private String userId;
    /**
     * 删除数据表主键
     * */
    @TableField("table_id")
    private String tableId;
    /**
     * 删除数据表名称
     * */
    @TableField("table_name")
    private String tableName;
    /**
     * 跟踪id
     * */
    @TableField("trace_id")
    private String traceId;
    /**
     * 删除内容json
     * */
    @TableField("bak_info")
    private String bakInfo;
    /**
     * 删除时间
     * */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 备注
     * */
    @TableField("remark")
    private String remark;


}
